package com.xiaoye.dao;

import com.xiaoye.entity.Department;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 宵夜
 * @version 1.0.0
 * @Description: TODO
 */
@Mapper
public interface DepartmentMapper {


    List<Department> listDepartments();
    List<Department> listDepartments(Department department);

    int insert(Department department);

    int deleteById(Integer id);

    Department getByNo(String no);

    Department getById(Integer id);

    int update(Department department);
}
